<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>球球</title>
    <style>
        header{
            width: 300px;
            height:300px;
            border-radius: 100%;
            position: absolute;
            overflow: hidden;
            margin: 0% 40%;
            background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 30%, rgba(0, 128, 0, 0.2) 100%);
            animation:spin1 5s infinite linear alternate;
        }
        div:first-child{
            width: 300px;
            height: 300px;
            position: absolute;
            border-radius: 100%;
            margin: 0 auto;
            animation:spin 3s infinite linear;
        }
        span:first-child{
            width: 20px;
            height: 20px;
            position: absolute;
            top: 120px;
            left: 35%;
            border-radius: 100%;
            background-color: black;
        }
        span:nth-child(2){
            width: 20px;
            height: 20px;
            position: absolute;
            top: 120px;
            right: 35%;
            border-radius: 100%;
            background-color: black;
        }
        span:last-child{
            width: 50px;
            height: 50px;
            position:absolute;
            top: 160px;
            left: 41%;
            border-radius: 50%;
            border-bottom: 5px solid black;
        }
        @keyframes spin{
            0%{left: -300px}
            100%{left: 300px}
           0%{
                transform: rotateY(140deg);
            }
            50%{
                transform: rotateY(0deg) ;
            }
            100%{
                transform: rotateY(-140deg);
            }
        }
        @keyframes spin1{
            0%{top: 0px}
            100%{top: 300px}
        }
        @media only screen and (max-width: 1500px) {
            @keyframes spin1{
                0%{left: -300px}
                100%{left: 300px}
            }
            header {
                background: blue;
                margin-top: 150px;
            }
        }
        @media only screen and (max-width: 1000px) {
            header {
                background: yellow;
                margin-top: 300px;
            }
            @keyframes spin1{
                0%{top: 0px}
                100%{top: 50px}
            }
        }
    </style>
</head>
<body>
<header>
    <div>
        <span></span>
        <span></span>
        <span></span>
    </div>
</header>
</body>
</html>